﻿<UserControl x:Class="ChatApp.Client.ucListChat"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid"
             xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors"
             Loaded="UserControl_Loaded">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="0"></RowDefinition>
            <RowDefinition Height="37"></RowDefinition>
            <RowDefinition Height="34"></RowDefinition>
            <RowDefinition Height="300*"></RowDefinition>
            <RowDefinition Height="40"></RowDefinition>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="100*"></ColumnDefinition>
        </Grid.ColumnDefinitions>
        <Rectangle Fill="White" Grid.Row="2" Stroke="#FF7096C3"/>
        <Label Content="Danh sách" Grid.Row="2" VerticalAlignment="Center" Foreground="#9B000000" FontWeight="DemiBold" FontSize="16" Margin="30,0,0,0"/>
        <Image Height="20"  Source="/ChatApp.Client;component/Images/Untitled4.png" Grid.Row="2" HorizontalAlignment="Left" Margin="10,0,0,0" />
        <dxe:TextEdit FontSize="14" FontWeight="DemiBold" Name="txtTenDangNhap"  Foreground="White" Grid.Row="1" Background="#FFD2DEF8" />
        <Image Source="/ChatApp.Client;component/Images/4.png" Grid.Row="1" HorizontalAlignment="Left"/>
        <dxg:GridControl Name="gridDanhSachBanBe" Grid.Row="3">
            <dxg:GridControl.Columns>
                <!--<dxg:GridColumn FieldName="CheckItem" Name="colChon" Width="30">
                            <dxg:GridColumn.EditSettings>
                                <dxe:CheckEditSettings/>
                            </dxg:GridColumn.EditSettings>
                        </dxg:GridColumn>-->
                <dxg:GridColumn FieldName="User1.UserName" ReadOnly="True" Header="" AllowEditing="False" />
            </dxg:GridControl.Columns>
            <dxg:GridControl.TotalSummary>
                <dxg:GridSummaryItem FieldName="User1.UserName" SummaryType="Count" DisplayFormat="#,#" />
            </dxg:GridControl.TotalSummary>
            <dxg:GridControl.View>
                <dxg:TableView Name="tbvDmYeuCau" ShowGroupPanel="False" ShowAutoFilterRow="True" ShowTotalSummary="True" 
                               AutoWidth="True" AllowGrouping="True" ShowHorizontalLines="False" ShowColumnHeaders="False" 
                               MouseDoubleClick="gridDanhSachBanBe_MouseDoubleClick"  
                               MultiSelectMode="None" PreviewKeyDown="gridDanhSachBanBe_PreviewKeyDown" />
            </dxg:GridControl.View>
        </dxg:GridControl>
        <Grid Grid.Row="4">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*"></ColumnDefinition>
                <ColumnDefinition Width="*"></ColumnDefinition>
            </Grid.ColumnDefinitions>
            <Button BorderBrush="{x:Null}" Name="btnChatPhong" OpacityMask="{x:Null}">
                <StackPanel Orientation="Horizontal">
                    <Image Source="/ChatApp.Client;component/Images/Untitled7.png" Width="30" Height="25"/>
                    <TextBlock FontSize="13" Foreground="#9B000000" FontWeight="DemiBold" VerticalAlignment="Center">Chat phòng</TextBlock>
                </StackPanel>
            </Button>
            <Button BorderBrush="{x:Null}" FontSize="16" Foreground="#9B000000" FontWeight="DemiBold" Name="btnThemBan" OpacityMask="{x:Null}" 
                    Grid.Column="1" Click="btnThemBan_Click" >
                <StackPanel Orientation="Horizontal">
                    <Image Source="/ChatApp.Client;component/Images/Untitled-2.png" Width="30" Height="25"/>
                    <TextBlock FontSize="13" Foreground="#9B000000" FontWeight="DemiBold" VerticalAlignment="Center">Thêm bạn</TextBlock>
                </StackPanel>
            </Button>
        </Grid>
        
        
    </Grid>
</UserControl>
